package org.example.composite;

import java.util.HashMap;
import java.util.Map;

/**
 * @author wangbin
 * @date 2024/4/18
 * @vesion 1.0
 */
public class Client {
    public static void main(String[] args) {
        OrganizationComponent university = new University("清华大学", "清华大学");
        OrganizationComponent collage = new Collage("计算机学院", "计算机学院");
        OrganizationComponent collage2 = new Collage("信息工厂学院", "信息工厂学院");

        collage.add(new Department("软件工程","软件工程"));
        collage.add(new Department("软件工程2","软件工程2"));
        collage.add(new Department("软件工程3","软件工程3"));

        collage2.add(new Department("通信工程1","通信工程1"));
        collage2.add(new Department("通信工程2","通信工程2"));
        collage2.add(new Department("通信工程3","通信工程3"));

        university.add(collage);
        university.add(collage2);

        collage2.print();


        Map<Object, Object> objectObjectHashMap = new HashMap<>();
    }
}
